Part Number Hot Search : 
WF7350S7 PD040 01CA3AKR 25160 MAX664 ADM10 HD11952 NSR02F30
Product Description
Full Text Search
 

To Download UR5HCSPI-06-XX-FA Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
is not relevant, but these two bytes must be present in the packet in order to preserve the packet structure.
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications key map for the fujitsu fkb1406 columns (c0?c13) 012345678910111213 lalt ` lctrl fn esc 1290- + bksp f1 f2 f9 f10 nmlk bk \ lsft del t y u i enter rshift pad 4 pad 5 pgdn tab q w e r o p [ ] pad 6 ins pause scrlk z caplk k l ; ? pad 2 pad 3 prtscr sysreq pgup asdfghj/ pad 1 / home x c v b n m , . spc pad 0 345678prog f3 f4 f5 f6 f7 f8 end usar ? a semtech company datasheet doc5-spi-06-ds-101 14 usar ? a semtech company rows (r0?r6) keyboard layout for fujitsu fkb1406 esc f2 1 ! f2 2 @ f3 3 # f4 4 $ f5 5 % f6 6 ^ f7 7 & f8 8 * f9 9 ( f10 0 ) num lk - _ bk = + qwe rt yu i op asdf ghj kl z xcvbnm ~ < , . >? / : ; prt scr " ' sys req { pause scr lk ins end pgdn pgup home enter : ; ctrl alt fn shift del cap lock [ ] } 0 1 23 45 6 * 9 8 7 _ . / + prog ` shift 0 1 2 3 4 5 6
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications sample configuration-ur5hcspi-06-fa usar ? a semtech company datasheet doc5-spi-06-ds-101 15 usar ? a semtech company alternatively a 2mhz cmos signal can be tied dire ctly to osc1 tied to gnd if not used attention signal wake up signal row inputs column outputs to switch matr ix power ok signal discrete switches slave select ceramic reson ator circuit with built in cap acitors, like avx pbr c-2.00br alternatively an rc circuit or master reset signal can be used power ok signal tie to vcc or gnd if not used vcc 1mohm 2mhz tc54c4302e cb vout vin gnd 15k 15k 1.5m 1.5m 15k 150k ur5hcspi-06-fa c0 6 c1 5 c2 4 c3 3 r0 10 c5 1 c6 48 c7 47 c8 27 c9 26 c10/wuko 25 osc1 40 osc2 39 vdd 41 c4 2 reset 45 miso 30 mosi 33 sck 34 ss 35 atn 36 vss 18 nc0 38 wku 46 iotest 20 c11/lid 24 pwr_ok 37 gio0 21 c13 22 c12 23 sw0 28 xsw 29 vss 42 r1 11 r2 12 r3 13 r4 14 r5 15 r6 16 r7 17 sck mosi miso _wkup _atn pwr_ok _lid wuko
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications electrical specifications absolute maximum ratings ratings symbol value unit supply voltage vdd -0.3 to +7.0 v input voltage vin vss -0.3 to vdd +0.3 v current drain per pin i 25 ma (not including vss or vdd) operating temperature ta t low to t high c ur5hcspi-06 -40 to +85 storage temperature range tstg - -65 to +150 c thermal characteristics characteristic symbol value unit thermal resistance tja c per w plastic 60 plcc 70 dc electrical characteristics (vdd=3.3 vdc +/-10%, vss=0 vdc, temperature range=t low to t high unless otherwise noted) characteristic symbol min typ max unit output voltage (i load<10a) vol 0.1 v voh vdd ? 0.1 output high voltage (i load=0.8ma) voh vdd ? 0.8 v output low voltage (i load=1.6ma) vol: 0.4 v input high voltage vih 0.7xvdd vdd v input low voltage vil vss 0.2xvdd v user mode current ipp 5 10 ma data retention mode (0 to 70 c) vrm 2.0 v supply current (run) idd 1.53 3.0 ma (wait) 0.711 1.0 ma (stop) 2.0 20 a i/o ports hi-z leakage current iil +/-10 a input current iin +/- 1 a i/o port capacitance cio 8 12 pf control timing (vdd=3.3 vdc +/-10%, vss=0 vdc, temperature range=t low to t high unless otherwise noted) characteristic symbol min max unit frequency of operation fosc mhz crystal option 2.0 external clock option dc 2.0 cycle time tcyc 1000 ns crystal oscillator startup time toxov 100 ms stop recovery startup time tilch 100 ms reset pulse width trl 8 tcyc interrupt pulse width low tlih 250 ns interrupt pulse period tilil * tcyc osc1 pulse width toh, tol 200 ns *the minimum period tlil should not be less than the number of cycle times it takes to execute the interrupt service routine pl us 21 tcyc. usar ? a semtech company datasheet doc5-spi-06-ds-101 16 usar ? a semtech company
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications usar ? a semtech company datasheet doc5-spi-06-ds-101 17 usar ? a semtech company usar spicoder tm bill of materials ur5hcspi-06-fa quantity manufacture r part# description 3 generic 15k 15k resistor 1 generic 150k 150k resistor 1 generic 1m 1m resistor 2 generic 1.5k 1.5 resistors 1 telcom tc54vc4302ecb713 ic volt detector cmos 4.3v sot23, for 5v operation tc54vc2702ecb713 ic volt detector cmos 2.7v sot23, for 3.3v operation 1 avx pbrc-2.00br 2.00mhzceramic resonator with built in capacitors, smt revised 7/14/99
description for sales information and product literature, contact: usar ? a semtech company 568 broadway new york, ny 10012 info@usar.com http://www.usar.com 212 226 2042 telephone 212 226 3215 telefax in japan: semtech japan tel: 81-45-948-5925 fax: 81-45-948-5930 in taiwan: semtech asia/pacific sales tel: 011-886-2-2748-3380 fax: 011-886-2-2748-3390 koryo electronics co., ltd. telephone +886-2-2698-1143 e-mail alex.chen@koryo.com.tw in korea: semtech korea tel: 011-82-2-527-4377 fax: 011-82-2-527-4376 in europe semtech limited tel: +44-1592-630350 fax: +44-1592-774781 copyright 1997-2000 usar ? a semtech company. all rights reserved. spicoder and zero-power are trademarks of usar systems, inc. usar and the usar logo are registered trademarks of usar ? a semtech company. all other trademarks belong to their respective companies. intellectual property disclaimer this specification is provided "as is" with no warranties whatsoever including any warranty of merchantability, fitness for any particular purpose, or any warranty otherwise arising out of any proposal, specification or sample. a license is hereby granted to reproduce and distribute this specification for internal use only. no other license, expressed or implied to any other intellectual property rights is granted or intended hereby. authors of this specification disclaim any liability, including liability for infringement of proprietary rights, relating to the implementation of information in this specification. authors of this specification also do not warrant or represent that such implementation(s) will not infringe such rights. a semtech company
  usar spicoder tm 06 ur5hcspi-06 usar spicoder tm 06 zero-power tm keyboard encoder and power management ic usar h/pc ics family product specifications description features applications ? strongarm tm handheld pcs  windows ce ? platforms  web phones  personal digital assistants (pdas)  wearable computers  internet appliance copyright 1997-2000 usar systems, inc. all rights reserved. usar ? a semtech company datasheet doc5-spi-06-ds-101 1 pin assignments the ur5hcspi-06 keyboard encoder and power management ic is designed specifically for handheld pcs (h/pcs). the off-the- shelf ur5hcspi-06 will readily work with cpus designed for windows ce ? , saving oems significant development time and money as well as minimizing time- to-market for the new generations of handheld products. three main design features of the ur5hcspi-06 make it the ideal companion for the new generation of windows ce ? -compatible, single-chip computers: low-power consumption; real estate-saving size; and special keyboard modes. ?quasi? zero-power tm consumption (less than 2a @ 3v), a must for h/pcs, provides the host system with both power management and i/o flexibility, with almost no battery drainage. a unique package size of only 7mm x 7mm (the smallest 48-pin package in the industry) fits the tight space requirements of h/pcs. finally, special keyboard modes and built-in power management features allow the usar spicoder tm 06 to operate in harmony with the power management modes of windows ce ? , resulting in more user flexibility and longer battery life. the ur5hcspi-06 also offers programmable features for wake- up keys and general purpose i/o pins.  special keyboard and power management modes for h/pcs, including programmable ?wake-up? keys  scans, debounces, and encodes an 8 x 14 matrix and controls discrete switches and led indicators  available in smallest 48-pin package, measuring just 7mm x 7mm with an 0.5mm pitch  custom versions available  spi-compatible keyboard encoder and power management ic with other interfaces available  compatible with windows ce ? keyboard specification  zero-power tm ? typically consuming less than 2a, between 3-5v  offers overall system power management capabilities  compatible with ?system-on silicon? cpus for h/pcs 111 12 22 33 23 44 34 pwr_ok nc0 osco osci vcc nc nc _reset _wku vx c7 _atn _ss sck mosi miso wuko sw0 c8 c9 c10 c11/_lid nc c12 c13 gio0 _iotest vss nc r7 r6 r5 r4 c6 c5 c4 c3 c2 c1 c0 r0 r1 r2 r3 qfp tqfp 112 36 25 48 13 37 24 c11/_lid c12 c13 gio0 _iotest nc vss r7 r6 r5 r4 r3 pwr_ok nc0 osc0 osci vcc vss nc nc _reset _wku c7 c6 _atn _ss sck mosi nc nc miso wuko sw0 c8 c9 c10 c5 c4 c3 c2 c1 c0 nc nc nc r0 r1 r2 ur5hcspi-06-fb 44-pin qfp (0.80 mm pitch) (10x10 mm) ur5hcspi-06-fa 48-pin qfp (0.5 mm pitch) (7x7 mm) a semtech company
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications functional description, cont usar ? a semtech company datasheet doc5-spi-06-ds-101 2 usar ? a semtech company block diagram ordering code keyboard scanner & keyboard state control r0-r8 spi communication channel c0-c13 keyboard matrix lid latch monitor wake-up keys only signal switch external to case switch system monitor input signals power management unit programmable i/o gio0 lid wuko xsw swo pwr_ok wkup iotest wku miso mosi sck ss atn ur5hcspi-06 package options pitch in mm?s ta=-20 c to +85 c 44-pin, plastic plcc 1.27 mm ur5hcspi-06-xx-fn 44-pin, plastic qfp 0.8 mm ur5hcspi-06-xx-fb 44-pin, plastic tqfp 0.5 mm UR5HCSPI-06-XX-FA note 1 : xx=optional customization, xxx= denotes revision number *minimum order quantity for the tqfp may apply
functional description the ur5hcspi-06 consists functionally of five major sections (see the functional diagram on page 2). these are the keyboard scanner and state control, the programmable i/o, the spi communication channel, the system monitor and the power management unit. all sections communicate with each other and operate concurrently. usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications usar ? a semtech company datasheet doc5-spi-06-ds-101 3 usar ? a semtech company pin definitions mnemonic plcc qfp tqfp type name and function vcc 44 38 41 i power supply: 3-5v vss 22 17 42 i ground vx 4 43 - i tie to vcc osci 43 37 40 i oscillator input osco 42 36 39 o oscillator output _reset 1 41 45 i reset: apply 0v to provide orderly start-up miso 34 29 30 o spi interface signals mosi 35 30 33 i sck 36 31 34 i _ss 37 32 35 i slave select: if not used tie to vss _iotest 24 18 20 o wake-up control signals _wku 2 42 46 i r0-r4 13-17 8-12 10-14 i row data inputs r5-r7 19-21 13-15 15-17 i port provides internal pull-up resistors c0-c5 12-7 7-2 6-1 o column select outputs: c6-c7 6-5 1,44 48-47 o c8-c9 31-30 26-25 27-26 o multi-function pins c10 29 24 25 i/o c10 & ? wake-up keys only ? imput c11/_lid 28 23 24 i/o c11 & lid latch detect input miscellaneous functions c12 27 21 23 i/o c12 c13 26 20 22 i/o c13 gio0 25 19 21 i/o programmable i/o wuko 33 28 29 i external discrete switch swo 32 27 28 i discrete switch power management pins _atn 38 33 36 o cpu attention output _pwr_ok 39 34 37 i power ok input nc 3,18 39-40 7-9,19 no connects : these pins are unused 23,40 16,22 31-32,43-44 nc0 41 35 38 nc0 should be tied to vss or gnd note 1: an underscore before a pin mnemonic denotes an active low signal.
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications usar ? a semtech company datasheet doc5-spi-06-ds-101 4 usar ? a semtech company vcc and vss vcc and vss are the power supply and ground pins. the ur5hcspi-06 will operate from a 3-5 volt power supply. to prevent noise problems, provide bypass capacitors and place them as close as possible to the ic with the power supply. vx, where available, should be tied to vcc. osci and osco osci and osco provide the input and output connections for the on- chip oscillator. the oscillator can be driven by any of the following circuits: - crystal - ceramic resonator - external clock signal the frequency of the on-chip oscillator is 2 mhz. _reset a logic zero on the _reset pin will force the ur5hcspi-06 into a known start-up state. the reset signal can be supplied by any of the following circuits: - rc - voltage monitor - master system reset mosi, miso, sck, _ss, _atn these five signals implement the spi interface. the device acts as a slave on the spi bus. the _ss (slave select) pin should be tied to ground if not used by the spi master. the _atn pin is asserted low each time the ur5hcspi-06 has a packet ready for delivery. for a more detailed description, refer to the spi communication channel section on page 9. _iotest and _wku ? input output test ? and ? wake up ? pins control the stop mode exit of the device. the designer can connect any number of active low signals to these two pins through a 17k resistor, in order to force the device to exit the stop mode. a sample circuit is shown on page 15 of this document. all the signals are ? wire-anded. ? when any one of these signals is not active, it should be floating (i.e., these signals should be driven from ? open-collector ? or ? open-drain ? outputs). other configurations are possible; contact usar. r0-r 7 the r0-r7 pins are connected to the rows of the scanned matrix. each pin provides an internal pull- up resistor, eliminating the need for external components. c0-c9 c0 to c9 are bi-directional pins connected to the columns of the scanned matrix. when a column is selected, the pin outputs an active low signal. when the column is de-selected, the pin turns into high-impedance. c10/wuko the c10/wuko pin acts alternatively as column scan output and as an input. as an input, the pin detects the ? wake-up keys only ? signal, typically provided by the host cpu to indicate that the user has turned the unit off. when the device detects an active high state on this pin, it feeds this information into the ? keyboard state control ? unit, in order to disable the keyboard and enable the programmed wake-up keys. c11/_lid the c11/_lid pin acts in a similar manner to the c10/wuko. this pin is typically connected to the lid latch through a 150k resistor, in order to detect physical closing of the device cover. when the pin detects an active low state in this input, it feeds this information into the ? keyboard state control ? unit, in order to disable keys inside the case and enable only switches located physically on the outer body of the h/pc unit. pin descriptions
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications pin descriptions, cont. c12, c13 and gio0 the usar spicoder tm 06 offers pins c12, c13 and gio0. c12 and c13 are used as additional column pins in order to accommodate larger-size keyboards, such as the fujitsu fkb1406 palmtop keyboard. gio0 is a programmable input/output switch; it can also be used as a wake-up signal. the programming of the gio0 is explained on page 8 of this document. xsw the xsw pin is dedicated to an external switch. this pin is handled differently than the rest of the switch matrix and is intended to be connected to a switch physically located on the outside of the unit. sw0 the sw0 pin is a dedicated input pin for a switch. pwr_ok the pwr_ok is an active low pin that monitors the battery status of the unit. when the ur5hcspi-06 detects a transition from high to low on this pin, it will immediately enter the stop mode, turn the led off and remain in this state until the batteries of the unit are replaced and the signal is deasserted. the windows ce ? keyboard the following illustration shows a typical implementation of a windows ce ? keyboard. windows ce ? does not support the following keyboard keys typically found on desktop and laptop keyboards: insert scroll lock pause num lock function keys (f1-f12) print screen if the keyboard implements the windows key, the following key combinations are supported in the windows ce ? environment: key combination result windows open start menu windows+k open keyboard tool windows+i open stylus tool windows+c open control panel windows+e explore the h/pc windows+r display the run dialog box windows+h open windows ce ? help ctrl+windows+a select all on desktop usar ? a semtech company datasheet doc5-spi-06-ds-101 5 usar ? a semtech company 1 ! esc 3 # 2 @ 5 % 4 $ 7 & 6 ^ 9 ( 8 * - _ 0 ) e w t r u y o i p q f d h g k j l s a v c n b m x z tab shift ctrl shift enter = + \ | ' " ; : . > , < / ? ` ~ ] } [ { power alt
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications usar ? a semtech company datasheet keyboard scanner the encoder scans a keyboard organized as an 8 row by 14 column matrix for a maximum of 112 keys. smaller size matrixes can also be accommodated by simply leaving unused pins open. the ur5hcspi-06 provides internal pull-ups for the row input pins. when active, the encoder selects one of the column lines (c0-c13) every 512 s and then reads the row data lines (r0-r7). a key closure is detected as a zero in the corresponding position of the matrix. a complete scan cycle for the entire keyboard takes approximately 9.2 ms. each key found pressed is debounced for a period of 20 ms. once the key is verified, the corresponding key code(s) are loaded into the transmit buffer of the spi communication channel. n-key rollover in this mode, the code(s) corresponding to each key press are transmitted to the host system as soon as that key is debounced, independent of the release of other keys. when a key is released, the corresponding break code is transmitted to the host system. there is no limitation to the number of keys that can be held pressed at the same time. however, two or more key closures, occurring within a time interval of less than 5ms, will set an error flag and will not be processed. this feature is to protect against the effects of accidental key presses. data command buffer the ur5hcspi-06 implements a data buffer, which contains the key code/command bytes waiting to be transmitted to the host. if the data buffer is full, the whole buffer will be cleared and an "initialize" command will be sent to the host. at the same time, the keyboard will be disabled until the "initialize" or "initialize complete" command from the host is received. power management unit in most keyboard subsystems, the power consumption is determined by the use of the leds. in these situations, usar has implemeneted two modes of operation to minimize power drain. (for more information, see page 10 on the usar ur5hcspi datasheet - doc5-spi-ds-100.pdf.) however, since the usar spicoder tm 06 does not provide led ouput/input, this is not a concern. doc5-spi-06-ds-101 6 usar ? a semtech company ?ghost? keys in any scanned contact switch matrix, whenever three keys defining a rectangle on the switch matrix are pressed at the same time, a fourth key positioned on the fourth corner of the rectangle is sensed as being pressed. this is known as the ? ghost ? or ? phantom ? key problem. figure 1 : ? ghost ? or ? phantom ? key problem although the problem cannot be totally eliminated without using external hardware, there are methods to neutralize its negative effects for most practical applications. keys that are intended to be used in combinations should be placed in the same row or column of the matrix, whenever possible. shift keys (shift, alt, ctrl, window) should not reside in the same row (or column) as any other keys. the ur5hcspi-06 has built-in mechanisms to detect the presence of ? ghost ? keys. actual key presses ? ghost ? key
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications these states of operation refer only to the keyboard functionality and, although they are related to power states, they are also independent of them. "send all keys" entry conditions: power on reset, soft reset, pwr_ok =1, {(lid=1) and (wuko=0)} exit conditions: pwr_ok = 0 -> "send no keys"(wuko=1) and (key press) -> "send wake-up keys only"(lid = 0) and (wuko=0) and (key press) -> "send xsw key only" description: this is the ur5hcspi- 06 ? s normal state of operation, accepting and transmitting every key press to the system. this state is entered after the power-on and is sustained while the unit is being used. ?send wake-up keys only? entry conditions: (wuko=1) and (key or switch press) exit conditions: soft reset -> ? send all keys ? pwr_ok = 0 -> ? send no keys ? description: this state is entered when the user turns the unit off. a signal line driven by the host will notify the ur5hcspi-06 about this state transition. while in this state, the ur5hcspi-06 will transmit only keys programmed to be wake-up keys to the system. it is not necessary for the ur5hcspi-06 to detect this transition in real time, since it does not affect any operation besides buffering keystrokes. usar ? a semtech company datasheet doc5-spi-06-ds-101 7 usar ? a semtech company send all keys send wake up keys only send no keys pwr_ok pwr_ok pwr_ok = 0 soft reset (pwr_ok =1) and (wuko=0) and (lid=1) and key press (pwr_ok =1) and key press and (wuko = 1) wuko =1 and key press send xsw key only (lid = 0) and (wuk0=0) and key press (lid = 1) and (wuko=0) and key press wuko=1 and key press pwr_ok (pwr_ok =1) and (lid = 0) and (wuko=0) and key press 3. while in this state all interrupts are disabled. the ur5hcspi-06 will exit this state on the next interrupt event that detects the pwr_ok line has been de- asserted. e ?send xsw key only" entry condition: (lid=0) and (wuko=0) and (key press) exit condition: (lid=1) and (wuko=0) and (key press) -> ? send all keys ? pwr_ok = 0 -> ? send no keys ? (wuko = 1) and (key press) -> ? send wake up keys only ? description: this state is entered upon closing the lid of the device. while in this state, the encoder will transmit only the xsw key, which is located outside the unit. this feature is designed to accommodate buttons on the outside of the box, such as a microphone button, that need to be used while the lid is closed. ?send no keys" entry conditions: pwr_ok transition from high to low exit conditions: (pwr_ok = 1) and (matrix key pressed or switch or _wkup) description: this state is entered when a pwr_ok signal is asserted (transition high to low), indicating a critically low level of battery voltage. the pwr_ok signal will cause an interrupt to the ur5hcspi-06, which guarantees that the transition is performed in real time. while in this state, the ur5hcspi-06 will perform as follows: 1. the ur5hcspi-06 will enter the stop mode for maximum energy conservation. 2. stop mode time-out entry will be shortened to further conserve energy. keyboard states figure 2: the ur5hcspi-06 implements four modes of keyboard and switch operation.
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications usar ? a semtech company datasheet doc5-spi-06-ds-101 8 usar ? a semtech company key codes key codes range from 01h to 73h and are arranged as follows: make code = column_number * 8 + row_number + 1 break code = make code or 80h discrete switches transmit the following codes: xsw = 71h sw0 = 72h gio0 = 73h pin configurations when prototyping, caution should be taken to ensure that programming of the gio0 pin does not conflict with the circuit implemented. a series protection resistor is recommended to be used for protection over improper programming of the pin. after a power-on or soft reset, gio0 defaults to the input state. the drawing to the right illustrates the suggested interface to the general purpose input/output pin. gio0 pin the ur5hcspi-06 a general purpose pin that can be programmed as input, output, debounced or switch input. the programmable i/o pin can be configured to the desired mode through a command from the system. after the i/o pin is configured, the host system can read or write data to it. if the pin is configured as a debounced switch, it will return scan codes. input mode while in the input mode, the gio0 pin will detect input signals and report the input status to the system as required. output mode in the output mode, the ur5hcspi-06 will control the output signal level according to the system command. when the pin is set at output mode, the default output is low. switch input mode in switch input mode, the ur5hcspi-06 will generate an individual make key code when the switch closes (pin goes low), and a break key code when the switch returns to open (pin goes to high). the switches generate key codes outside of those generated by the key matrix, from 71h - 73h. when the switch closes, the usar spicoder tm will not fall asleep. input gix circuit determined by the specific application output gix circuit determined by the specific application led gix switch gix wake-up interrupt i _wku _iotest 15k 150k series protection resistor figure 3: the suggested interface to the general purpose input/output pin
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications spi communication channel spi data transfers can be performed at a maximum clock rate of 500 khz. when the ur5hcspi asserts the _atn signal to the host master, the data will have already been loaded into the data register waiting for the clocks from the master. the slave select (ss) line can be tied permanently to ground if the ur5hcspi is the only slave device in the spi network. one _atn signal is used per each byte transfer. if the host fails to provide clock signals for successive bytes in the data packet within 120 ms, the transmission will be aborted and a new session will be initiated by asserting a new atn signal. in this case, the whole packet will be re-transmitted. if the spi transmission fails 20 times consecutively, the synchronization between the master and slave may be lost. in this case, the ur5hcspi will enter the reset state. the ur5hcspi implements the spi communication protocol according to the following diagram: cpol = 0 ---------- sck line idles in low state cpha = 1 ---------- ss line is an output enable control usar ? a semtech company datasheet doc5-spi-06-ds-101 9 usar ? a semtech company figure 6: transmitting data waveforms: figure 7: receiving data waveforms figure 5: spi communication protocol when the host sends commands to the keyboard, the ur5hcspi-06 requires that the minimum and maximum intervals between two successive bytes be 200 s and 5 ms respectively. sck (cpol=0) _ss data output (cpha=1) sample input ? msb bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 lsb _atn signal _atn sck _miso 120ms max _wku sck mosi miso 125ns min 5ms min, 150ms max 200us min 5ms max
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications data/command buffer the ur5hcspi-06 implements a data buffer that contains the key code/command bytes waiting to be transmitted to the host. if the data buffer is full, the whole buffer will be cleared and an "initialize" command will be sent to the host. at the same time, the keyboard will be disabled until the "initialize" or "initialize complete" command from the host is received. usar ? a semtech company datasheet doc5-spi-06-ds-101 10 usar ? a semtech company power management unit the ur5hcspi-06 supports two modes of operation. the following table lists the typical and maximum supply current (no dc loads) for each mode at 3.3 volts (+/- 10%). current typical max unit description run 1.5 1 3.0 ma entered only while data/commands are in process and if the leds are blinking stop 2.0 20 a entered after 125 ms of inactivity if leds islow power consumption of the keyboard sub-system will be determined primarily by the use of the leds. while the ur5hcspi-06 is in the stop mode, an active low wake-up output from the master must be connected to the edge-sensitive _wku pin of the ur5hcspi-06. this signal will be used to wake up the ur5hcspi-06 in order to receive data from the master host. the master host will have to wait a minimum of 5 ms prior to providing clocks to the ur5hcspi-06. the ur5hcspi-06 will enter the stop mode after a 125 ms period of keypad and/or host communications inactivity, or anytime the pwr_ok line is asserted low by the host. note that while one or more keys are held pressed, the ur5hcspi-06 will not enter the stop mode until every key is released. stop run - keyboard - switch - input transaction - system wake-up - after 125 ms of inactivity and leds are off after reset or 125 ms of inactivity while processing current task and/or led(s) are active figure 6: the power states of the ur5hcspi-06
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications commands from the ur5hcspi-06 to the host, cont. resend request 80h a5h 25h the ur5hcspi-06 will send this resend request command to the host when its command buffer is full, or if it detects either a parity error or an unknown command during a system command transmission. input/output mode status report 80h a7h xxh io number, 0 xxh io mode: (0=input; 1=output; 2=switch; 3=led ) xxh the ur5hcspi-06 will send the i/o mode status report to the host when it receives the i/o mode status request command from the host, in order to report the status of the gio0 pin. input/output data report 80h a8h xxh io number, 0 xxh io data: ( 0=low, 1=high ) xxh the ur5hcspi-06 will send the i/o data report to the host when it receives the i/o data request command from the host. usar ? a semtech company datasheet doc5-spi-06-ds-101 11 usar ? a semtech company lrc calculation, cont. the following c language function is an example of an lrc calculation program. it accepts two arguments: a pointer to a buffer and a buffer length. its return value is the lrc value for the specified buffer. char calculate lrc (char buffer, size buffer) { char lrc; size_t index; /* * init the lrc using the first two message bytes. */ lrc = buffer [0] ^ buffer [1]; /* * update the lrc using the remainder of the buffer. */ for (index = 2; index < buffer; index ++) lrc ^ = buffer[index]; /* * if the msb is set then clear the msb and change the next most significant bit */ if (lrc & 0x80) lrc ^ = 0xc0; /* * return the lrc value for the buffer.*/}
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications usar ? a semtech company datasheet doc5-spi-06-ds-101 12 usar ? a semtech company commands from the host to the ur5hcspi-06 commands from the host - summary command name code description initialize aoh causes the ur5hcspi-06 to enter the power-on state initialization complete a1h issued as a response to the ? initialize request ? heartbeat request a2h the ur5hcspi-06 will respond with ? heartbeat response ? identification request f2h the ur5hcspi-06 will respond with ? identification response ? resend request a5h issued upon error during the reception of a packet input/output mode modify a7h the ur5hcspi-06 will modify or report the status of the gio0 pin output data to i/o pin a8h the ur5hcspi-06 will output a signal to the gio0 pin set wake-up keys a9h defines which keys are ? wake-up ? keys each command to ur5hcspi-06 is composed of a sequence of codes. all commands start with code (1bh) and end with the lrc code (bitwise exclusive or of all bytes). commands from the host to the ur5hcspi-06 analytically initialize 1bh a0h 7bh when the ur5hcspi-06 receives this command, it will clear all buffers and return to the power-on state. initialization complete 1bh a1h 7ah when the ur5hcspi-06 receives this command, it will enable transmission of keyboard data. keyboard data transmission is disabled if the tx output buffer is full (32 bytes). note that if the transmit data buffer gets full the encoder will issue an "initialize request" to the host. heartbeat request 1bh a2h 79h when the ur5hcspi-06 receives this command, it will reply with the heartbeat response report. identification request 1bh f2h 29h the ur5hcspi-06 will reply to this command with the identification response report.
usar spicoder tm 06 ur5hcspi-06 usar h/pc ics family product specifications commands from the host to the ur5hcspi-06, cont. usar ? a semtech company datasheet doc5-spi-06-ds-101 13 usar ? a semtech company i/o mode modify 1bh a7h xxh io number: 0 xxh io mode: ( 0=input, 1=output, 2=switch, 3=led, 4=current mode state request) xxh when ur5hcspi-06 receives this command, it will change the i/o pin's mode accordingly. if the =4, the ur5hcspi-06 will send the i/o mode status report to the host. output data to i/o pin: 1bh a8h xxh io number: 0 xxh io data: ( 0=low, 1=high, 2=current i/o data request) xxh when ur5hcspi-06 receives this command, it will change the value of the output pin accordingly. if the addressed pin is not configured as an output pin, the command will be ignored. if =2, the ur5hcspi-06 will respond by issuing the i/o data status report to the host. set wake-up keys 1bh a9h xxh (r7 r6 r5 r4 r3 r2 r1 r0 bitmap: 0- enabled, 1-disabled) xxh xxh xxh xxh xxh xxh xxh xxh xxh xxh xxh * xxh (*ur5hcspi-06-06-xx only) * xxh (*ur5hcspi-06-06-xx only) xxh (where switches bit assignments are = x x x x x gio0 sw0 xsw) xxh the "set wake-up keys" command is used to disable specific keys from waking up the host. using this command, the host can set only a group of keys. for this ic, data in bytes and


▲Up To Search▲   

 
Price & Availability of UR5HCSPI-06-XX-FA

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X